cmake_minimum_required(VERSION 3.20)
project(src C)

set(CMAKE_C_STANDARD 11)

file(GLOB_RECURSE SOURCES "*.c")
add_library(${PROJECT_NAME} STATIC ${SOURCES})
add_library(cn::src ALIAS ${PROJECT_NAME})

SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES output_name "cnsrc")
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
